package com.zeng.demo;

/**
 * @author zeng
 * @data 2021/06/09 12:41
 */
public class Proxy {
    //代理房东
    private Landlord landlord;
    //中介提供某些服务
    public void SeeHouse(){
        System.out.println("中介带人看房");
    }

    public void fee(){
        System.out.println("收取中介费");
    }
    public void rent(){
        landlord.rent();
    }
    public void AcheieveAgreememt(){
        System.out.println("呼叫"+ landlord.RelatedWay() + ",通知他签合同");
    }

    public void setLandlord(Landlord landlord) {
        this.landlord = landlord;
    }
}
